﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Yozeev.BankService.Models
{
    /// <summary>
    /// 微信订单信息模型
    /// </summary>
    public class WeichatOrderItem
    {
        /// <summary>
        /// 微信支付类型，1：NATIVE 2：JSAPI 3：APP 4：MICROPAY
        /// 必须指定
        /// </summary>
        public string PayTypeID { get; set; }
        /// <summary>
        /// 订单日期 2014/09/23，必须指定
        /// </summary>
        public string OrderDate { get; set; }
        /// <summary>
        /// 订单时间 11:55:30，必须指定
        /// </summary>
        public string OrderTime { get; set; }
        /// <summary>
        /// 微信支付超时时间，20141019104901 付款码支付超时时间为30s且不支持超时时间控制
        /// </summary>
        public string orderTimeoutDate { get; set; }
        /// <summary>
        /// 订单号，必须指定
        /// </summary>
        public string OrderNo { get; set; }
        /// <summary>
        /// 交易币种，请上送156人民币，必须指定
        /// </summary>
        public string CurrencyCode { get; set; }
        /// <summary>
        /// 交易金额， 必须指定，最大长度15
        /// </summary>
        public string OrderAmount { get; set; }
        /// <summary>
        /// 过期时间，历史字段，无需上送
        /// </summary>
        public string ExpiredDate { get; set; }
        /// <summary>
        /// 刷卡支付时，请上送授权码；公众号、小程序、APP支付时，请上送应用的APPID
        /// 扫付款码支付，上送付款码
        /// </summary>
        public string AccountNo { get; set; }
        /// <summary>
        /// 公众号、小程序支付时，请上送用户在微信的用户标示openid
        /// </summary>
        public string OpenID { get; set; }
        /// <summary>
        /// 订单描述，必须上送
        /// </summary>
        public string OrderDesc { get; set; }
        /// <summary>
        /// 收货地址
        /// </summary>
        public string ReceiverAddress { get; set; }
        /// <summary>
        /// 客户IP
        /// </summary>
        public string BuyIP { get; set; }
        /// <summary>
        /// 禁用支付渠道，no_credit：禁用信用卡, no_balance,no_lqt: 禁用零钱和零钱通
        /// </summary>
        public string LimitPay { get; set; }
        /// <summary>
        /// 平台商户分账子商户循环域
        /// </summary>
        public SplitAccount SplitAccInfoItems { get; set; }
        /// <summary>
        /// 平台商户分账子商户
        /// </summary>
        public class SplitAccount
        {
            /// <summary>
            /// 子商户号
            /// </summary>
            public string SplitMerchantID { get; set; }
            /// <summary>
            /// 分账金额
            /// </summary>
            public string SplitAmount { get; set; }
        }
    }
}
